<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>My JSP 'wipReg.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  <body>
   <c:choose>
     <c:when test="${not empty errorMess}">
      <script type="text/javascript" language="javascript">
    	  alert("添加失败,${errorMess}!");
    	  window.location.href="<%=basePath%>wip.do?proId=${proSku}";
    	 </script>
     </c:when>
     <c:when test="${not empty mess}">
         <script type="text/javascript" language="javascript">
     	  alert("添加成功,添加成功的工序序号分别为:${mess}!");
     	  window.location.href="<%=basePath%>wip.do?proId=${proSku}";
     	 </script>
     </c:when>
     <c:otherwise>
         <script type="text/javascript" language="javascript">
     	  alert("未执行任何操作!");
     	  window.location.href="<%=basePath%>wip.do?proId=${proSku}";
     	 </script>
     </c:otherwise>
   </c:choose>
  </body>
</html>
